package com.example.chongqingichms.mapper;

import com.example.chongqingichms.bean.UserBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserMapper extends JpaRepository<UserBean,Integer> {

    @Query("select o from tb_user o where o.username=?1 and o.password=?2")
    public UserBean getInfo(String username, String password);
}
